home *** CD-ROM | disk | FTP | other *** search
- /*
- おこめ標準グラフィック関数
- */
-
- #include <stdarg.h>
- #include <EGB.h>
- #include <Normlib.h>
-
- extern char work[];
-
- /* polygon(ポイント数,x1,y1, ... , PaintMode, Color ); */
- void polygon(int s, ... )
- {
- int i;
- char pa[1024];
- va_list ap;
- WORD(pa ) = s;
- va_start(ap, s);
- for (i=0; i<s*2; i++)
- WORD(pa+i*2+2) = va_arg(ap, int);
- EGB_paintMode(work, va_arg(ap, int));
- i = va_arg(ap, int);
- EGB_color(work, 0, i);
- EGB_color(work, 2, i);
- va_end(ap);
- EGB_polygon(work, pa);
- }
-